package com.design.pattern.creational.singleton;

/**
 * description
 *
 * @author RenQiQiang 2019/02/18 9:52
 */
public class LazySingleton {
    private static LazySingleton lazySingleton = null;

    //锁的范围大了
    public synchronized static LazySingleton getInstance(){
        if(lazySingleton == null){
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }
}
